<?php
	include 'ADController.php';
	$title = $_REQUEST['title'];
	$summary = $_REQUEST['summary'];
	$adUrl = $_REQUEST['adurl'];
	$details = $_REQUEST['details'];
	$status = $_REQUEST['status'];
	$category = $_REQUEST['category'];
	
	$advertising = new Advertising();
	$advertising->setTitle($title);
	$advertising->setSummary($summary);
	$advertising->setDetails($details);
	$advertising->setAdUrl($adUrl);
	$advertising->setStatus($status);
	$advertising->setCategory($category);
	
	addAdvertising($advertising);
?>